package cn.hd.userService.service.user;

import cn.hd.commonService.vo.Query;
import cn.hd.commonService.entity.SysUser;
import cn.hd.commonService.vo.user.UserRoleVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hd
 * @since 2022-06-26
 */
public interface ISysUserService extends IService<SysUser> {
    public void register(SysUser sysUser);

    public void update(SysUser sysUser);

    public void deleteBatch(String uuids);

    public IPage<UserRoleVo> getListByPage(Query query, String condition);

    public SysUser getUserByAccount(String account);

    public void enableUser(Integer userId,Integer enable);

    void updatePassword(Integer recordId, String account, String password);

    SysUser getUserByUserId(Integer recordId);

    void uploadPhoto(Integer recordId, MultipartFile photo)throws Exception;
}
